import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { Uploader } from 'vant';
// 导入router路由管理者
import { createRouter } from "./router/index.js"
import { ConfigProvider } from 'vant';
import { Card } from 'vant';
import { AddressEdit } from 'vant';
//导入pinia
import { createPinia } from 'pinia'

//导入pinia 持久化 插件
import piniaPersist from 'pinia-plugin-persist'
//实例化pinia
const pinia = createPinia()
pinia.use(piniaPersist) // 将pinia 和 piniaPersist持久化插件 绑定


import Vant from 'vant'
import 'vant/lib/index.css';
import "video.js/dist/video-js.css";
import  { Lazyload } from 'vant';
createApp(App)
    .use(createRouter())// 将router 和 App.vue组件绑定
    .use(pinia) // 将pinia 和 vue 绑定
    .use(Vant)  // 将Vant 和 vue 绑定
    .use(Lazyload)
    .use(AddressEdit)
    .use(ConfigProvider)
    .use(Uploader)
    .use(Card)
    .mount('#app')